﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using BlueLotus7.ExternalApi.TencentStatusApi;
using BlueLotus7.ArchiveSystem.Common;
using BlueLotus7.ArchiveSystem.WCFClients;
using System.Threading;
using BlueLotus7.ArchiveSystem.IMStatusMonitor.Properties;

namespace BlueLotus7.ArchiveSystem
{
    public class TencentStatusMonitor : StatusMonitor
    {
        public const string scopeCode = "qq";

        public override string ScopeCode
        {
            get
            {
                return scopeCode;
            }
        }

        public TencentStatusMonitor(Guid domainScopeKey, Guid monitorClientKey)
            : base(domainScopeKey, monitorClientKey)
        {
        }

        protected override IStatusMonitorTask CreateTask(Guid domainScopeUserKey, string thirdParyIdentity)
        {
            return new TencentStatusMonitorTask(domainScopeUserKey, thirdParyIdentity, this, Settings.Default.TencentInterval);
        }
    }
}
